package cn.com.qtgl.apis.notification.model.view;

import cn.melonlib.cores.commons.model.entity.ApiEntity;
import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("消息发送渠道")
public class NotificationChannelView extends StringIdEntity implements ApiEntity {

    @ModelComment("消息渠道编号")
    private String code;

    @ModelComment("消息渠道名称")
    private String name;

    @ModelComment("消息渠道类型")
    private String type;

    @ModelComment("是否启用")
    private Boolean enable;

    @ModelComment("消息发送配置")
    private String config;

    @ModelComment("重试时间")
    private Integer retryHours;

    @ModelComment("最大重试时间")
    private Integer validHours;

    @ModelComment("最大重试次数")
    private Integer retryCount;

}
